<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
             targetNamespace="Examples">

  <process id="interruptingTimer" isExecutable="true">
  
    <startEvent id="theStart"/>
    
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="task"/>
    
    <userTask id="task"/>
    
    <sequenceFlow id="flow2" sourceRef="task" targetRef="end"/>
    
    <boundaryEvent id="timer" attachedToRef="task">
      <timerEventDefinition>
          <timeDuration>PT10S</timeDuration>
      </timerEventDefinition>
    </boundaryEvent>
    
    <sequenceFlow id="flow3" sourceRef="timer" targetRef="timerFiredTask1"/>
    
    <userTask id="timerFiredTask1" />

    <sequenceFlow id="flow4" sourceRef="timer" targetRef="timerFiredTask2"/>
    
    <userTask id="timerFiredTask2" />
    
    <sequenceFlow id="flow5" sourceRef="timerFiredTask1" targetRef="nonInterruptingEnd1"/>
    
    <endEvent id="nonInterruptingEnd1"/>
    
    <sequenceFlow id="flow6" sourceRef="timerFiredTask2" targetRef="nonInterruptingEnd2"/>
    
    <endEvent id="nonInterruptingEnd2"/>
        
    <endEvent id="end"/>
  
  </process>
</definitions>